package com.kiss.rpc;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class RpcConsumer2 {
    public static void main(String[] args){

        ReferenceConfig<MyDo> referenceConfig = new ReferenceConfig<>();
        referenceConfig.setInterfaceRef(MyDo.class);
        referenceConfig.setGroup("g2");
        referenceConfig.setRegistry(RpcBootstrap.getInstance().getConfig().getRegistryConfig().getRegistry());

        MyDo myDo = referenceConfig.get();

        while (true) {
            myDo.doSomething("hello ");
        }
    }
}
